import {request} from 'ice';

export default {
  async getAreaList() {
    return await request.get('/dataDef/area/search');
  },
  async addAreaInfo(areaInfo) {
    return await request.post('/dataDef/area/save', areaInfo);
  },
  async updateAreaInfo(areaInfo) {
    return await request.post('/dataDef/area/update', areaInfo);
  },
  async deleteAreaInfo(uid) {
    return await request.delete(`/dataDef/area/${uid}`);
  },
}
